﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BLL;

public partial class Admin_Sanphamgiamgia_Capnhat_sanphamgiamgia : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SanPhamGiamGiaBLL sp = new SanPhamGiamGiaBLL();
        DataTable sanpham = sp.selectdetail(int.Parse(Request.QueryString["id"]));
        String theloai = sp.tentloai_theoIDsp(int.Parse(Request.QueryString["id"]));
        String cty = sp.tencty_theoIDsp(int.Parse(Request.QueryString["id"]));
        String sploai2 = sp.tensploai2_theoIDsp(int.Parse(Request.QueryString["id"]));
        Label9.Text = sanpham.Rows[0][1].ToString();
        Label10.Text = sanpham.Rows[0][2].ToString();
        Label11.Text = sanpham.Rows[0][3].ToString();
        Label12.Text = sanpham.Rows[0][4].ToString();
        Label13.Text = sanpham.Rows[0][6].ToString();
        Label14.Text = sanpham.Rows[0][7].ToString();
        Label15.Text = sanpham.Rows[0][8].ToString();
        Image1.ImageUrl = sanpham.Rows[0][9].ToString();

        Label16.Text = sploai2;
        Label17.Text = cty;
        Label18.Text = theloai;

    }
}